<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js">
</script>

    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">

    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>
<body>
<div class="row" >
    <br>
    <br>
    <div class="col-md-1"></div>
    <div class="col-md-10">
        <form class="form-horizontal" method="post" th:action="@{/admin/update}" >

            <div class="form-group">
                <label  class="col-sm-2 control-label">内容</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" th:value="${day.day}" name="day" placeholder="请输入内容">
                    <input type="text" class="form-control" th:value="${day.id}" name="id" style="display: none">
                    <input type="text" class="form-control" th:value="${day.state}" name="state" style="display: none">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">作者</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="author" th:value="${day.author}" placeholder="请输入作者">
                </div>
            </div>

            <div class="form-group ">
                <div class="col-sm-offset-2 col-sm-10 pull-right">
                    <button type="button" class="btn btn-warning"  onclick="window.history.go(-1)">返回</button>
                    <button type="submit" class="btn btn-info">提交</button>
                </div>
            </div>
        </form>
    </div>
    <div class="col-md-1"></div>
</div>


</body>
</html>